#include "stdafx.h"

#include "TigerPortfilio.h"

#include "PFPortfilioModel.h"

TigerPortfilio::TigerPortfilio(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);

	PFPortfilioModel * model = new PFPortfilioModel(this);
	PFPortfilioFilterModel * filterModel = new PFPortfilioFilterModel(this);
	filterModel->setSourceModel(model);
	
	ui.treeView->setModel(filterModel);

	ui.treeView->sortByColumn(-1);
	ui.treeView->setSortingEnabled(true);
	//ui.treeView->header()->setSortIndicatorShown(false);
	ui.treeView->header()->setSectionsClickable(true);
	ui.treeView->setColumnWidth(0, 150);

	ui.treeView->expandAll();
	//model->Update();
}

TigerPortfilio::~TigerPortfilio()
{

}

void TigerPortfilio::paintEvent(QPaintEvent *event)
{
	__super::paintEvent(event);
}
